package com.briup.ch07.interfaces;

public class Bird extends Object implements IFly,ISleep{//完整语法顺序，不能让继承写在接口后面


    @Override
    public void fly() {
        System.out.println("我在天空飞翔");
    }

    @Override
    public void sleep() {
        System.out.println("我在树上sleep"+HOUR);
    }
}
